<template>
  <el-select v-model="value" placeholder="请选择" @change="handleChange">
    <el-option
      v-for="item in options"
      :key="item.value"
      :label="item.label"
      :value="item.value"
    >
    </el-option>
  </el-select>
</template>

<script>
export default {
  data() {
    return {
      value: null,
      options: [
        {
          value: 1,
          label: "企业会计准则",
        },
        {
          value: 2,
          label: "小企业会计准则",
        },
      ],
    };
  },
  methods: {
    handleChange() {
      this.$emit("innerChange", this.value);
    },
  },
  model: {
    prop: "standard",
    event: "innerChange",
  },
  mounted() {},
  watch: {
    standard: {
      handler(val) {
        this.value = val;
      },
      immediate: true,
    },
  },
  props: {
    standard: {
      type: Number,
      default: null,
    },
  },
};
</script>
